package cn.wetcland.urban.generator.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName ut_order
 */
@Data
@TableName(value ="ut_order")
public class UtOrder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long orderId;

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     * 发起订单顾客ID
     */
    private Long customerId;

    /**
     * 接单司机ID
     */
    private Long driverId;

    private Long originAddressId;

    private Long destinationAddressId;

    /**
     * 订单状态 0等待接单 1已接单 2司机正在赶往接货地 3司机送货中 4订单完成
     */
    private Integer orderStatus;

    /**
     * 起始地-经纬度
     */
    private BigDecimal originLocationLongitude;

    /**
     *
     */
    private BigDecimal originLocationLatitude;

    /**
     * 目的地-经纬度
     */
    private BigDecimal destinationLocationLongitude;

    /**
     *
     */
    private BigDecimal destinationLocationLatitude;

    /**
     * 起始地名称
     */
    private String originLocationName;

    /**
     * 目的地名称
     */
    private String destinationLocationName;

    /**
     * 跟车人数
     */
    private Integer followerNum;

    /**
     * 订单金额
     */
    private BigDecimal price;

    /**
     * 
     */
    @TableLogic
    private Integer isDelete;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     *
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}